package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.FeeRecords;
import com.ruoyi.system.service.IFeeRecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FeeRecordsMapper;

/**
 * 门诊消费记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-30
 */
@Service
public class FeeRecordsServiceImpl implements IFeeRecordsService
{
    @Autowired
    private FeeRecordsMapper feeRecordsMapper;

    /**
     * 查询门诊消费记录
     * 
     * @param id 门诊消费记录主键
     * @return 门诊消费记录
     */
    @Override
    public FeeRecords selectFeeRecordsById(Long id)
    {
        return feeRecordsMapper.selectFeeRecordsById(id);
    }

    /**
     * 查询门诊消费记录列表
     * 
     * @param feeRecords 门诊消费记录
     * @return 门诊消费记录
     */
    @Override
    public List<FeeRecords> selectFeeRecordsList(FeeRecords feeRecords)
    {
        return feeRecordsMapper.selectFeeRecordsList(feeRecords);
    }

    /**
     * 新增门诊消费记录
     * 
     * @param feeRecords 门诊消费记录
     * @return 结果
     */
    @Override
    public int insertFeeRecords(FeeRecords feeRecords)
    {
        return feeRecordsMapper.insertFeeRecords(feeRecords);
    }

    /**
     * 修改门诊消费记录
     * 
     * @param feeRecords 门诊消费记录
     * @return 结果
     */
    @Override
    public int updateFeeRecords(FeeRecords feeRecords)
    {
        return feeRecordsMapper.updateFeeRecords(feeRecords);
    }

    /**
     * 批量删除门诊消费记录
     * 
     * @param ids 需要删除的门诊消费记录主键
     * @return 结果
     */
    @Override
    public int deleteFeeRecordsByIds(Long[] ids)
    {
        return feeRecordsMapper.deleteFeeRecordsByIds(ids);
    }

    /**
     * 删除门诊消费记录信息
     * 
     * @param id 门诊消费记录主键
     * @return 结果
     */
    @Override
    public int deleteFeeRecordsById(Long id)
    {
        return feeRecordsMapper.deleteFeeRecordsById(id);
    }
}
